/*body {*/
  /*background-color: #f0f0f0;*/
  /*font-family: "Droid Sans","Helvetica Neue", Helvetica, Arial, sans-serif;*/
  /*-webkit-font-smoothing: antialiased;*/
/*}*/

/** {*/
  /*box-sizing: border-box;*/
/*}*/

.container {
  background: #fdfdfd;
  border-radius: 0.2rem;
  /*counter-reset: pagination;*/
  text-align: center;
  height:39px;
  padding: 10px;
}
.container:after {
  clear: both;
  content: "";
  display: table;
}

.middle ul, li {
  list-style: none;
  display: inline;
  padding-left: 0px;
}

.middle li {
  counter-increment: pagination;
}
.middle li:hover a {
  color: #56a4ff;
  background-color: #deedff;
}
.middle li.active a {
  color: #56a4ff;
  background-color: #deedff;
}
.middle li:first-child {
  float: left;
}
.middle li:first-child a:after {
  content: "Previous";
}
.middle li:nth-child(2) {
  counter-reset: pagination;
}
.middle li:last-child {
  float: right;
}
.middle li:last-child a:after {
  content: "Next";
}
.middle li a {
  border-radius: 0.2rem;
  color: rgb(178,176,176);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  padding: 0.5rem 0.9rem;
  background-color: #f1f1f1;
}
.middle li a:after {
  content: " " counter(pagination) " ";
}


.middle li a {
  display: none;
}
.middle li:first-child a {
  display: inline-block;
  margin-left: 10px;
}
.middle li:first-child a:after {
  content: "上一页";
}
.middle li:last-child a {
  display: inline-block;
  margin-right: 10px;
}
.middle li:last-child a:after {
  content: "下一页";
}
.middle li:nth-child(2) a {
  display: inline-block;
}
.middle li:nth-child(3) a {
  display: inline-block;
}
.middle li:nth-child(4) a {
  display: inline-block;
}
.middle li:nth-child(5) a {
  display: inline-block;
}
.middle li:nth-last-child(2) a {
  display: inline-block;
}
.middle li:nth-last-child(3) {
  display: inline-block;
}
.middle li:nth-last-child(3):after {
  padding: 0 1rem;
  content: "...";
}
